 @include('home.Usercenter.header')


        <div ng-view="" role="main" class="ng-scope">
            <div class="profile-container container" profile-container="" page-name="order"
            page-title="近三个月订单">
                <div class="clearfix">
                    <div class="location" ng-style="{visibility: geohash ? &#39;&#39; : &#39;hidden&#39;}"
                    role="navigation" location="">
                        <span>
                            当前位置 : {{session('dizhi')}}
                        </span>

                        
                        <span ng-transclude="">
                            </i>
                            <span class="ng-binding ng-scope">
                                近三个月订单
                            </span>
                        </span>
                    </div>
                    <div search-input="">
                    </div>
                </div>
                @include('home.UserCenter.leftList')
                <div class="profile-panel" role="main">
                    <!-- ngIf: pageTitleVisible -->
                    <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope">
                        <span ng-bind="pageTitle" class="ng-binding">

                            近三个订单

                        </span>
                        <span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted">
                        </span>
                    </h3>
                    <!-- end ngIf: pageTitleVisible -->
                    <div class="profile-panelcontent" ng-transclude="">
                        <div class="order-fetchtakeout ng-scope ng-isolate-scope" show-fetch-takeout-dialog="">
                            <img src="/home/UserCenters/img/takeout.408a87.png">
                        </div>

                        <div style="display:none" class="order-extra ng-scope">

                            <a href="" target="_blank">
                                热门问题
                            </a>
                            <a href=""
                            target="_blank">
                                随时关注订单状态
                            </a>
                        </div>

                        @if(empty($orders))

                        <div class="loading ng-binding ng-isolate-scope ng-hide" loading="" ng-show="!orderList">
                            <!-- ngIf: type==='profile' -->
                            <img ng-if="type===&#39;profile&#39;" src="./饿了么-网上订餐_外卖_饿了么订餐官网_files/profile-loading.4984fa.gif"
                            alt="正在加载" class="ng-scope">
                            <!-- end ngIf: type==='profile' -->
                            <!-- ngIf: type==='normal' -->
                            正在载入数据...
                        </div>

                        <div style="display:block" class="order-nocontent nodata ng-isolate-scope" ng-show="orderList &amp;&amp; !orderList.length"
                        nodatatip="" content="暂无记录，现在就去&lt;a href=&#39;/place&#39;&gt;订餐&lt;/a&gt;吧!">
                            <p class="nodata-container ng-binding" ng-bind-html="content | toTrusted">
                                暂无记录，现在就去订餐吧!
                            </p>
                        </div>
                        @else
                        <table class="order-list ng-scope" ng-show="orderList.length">
                            <thead>
                                <tr>
                                    <th>下单时间</th>
                                    <th class="order-list-infoth">订单内容</th>
                                    <th></th>
                                    <th>支付金额（元）</th>
                                    <th>状态</th>
                                    <th>操作</th></tr>
                            </thead>
                            <tbody>
                                
                                @foreach($orders as $k=>$aaa)
                           
                                   
                                <!-- ngRepeat: item in orderList -->
                                <tr class="timeline" order-timeline="" ng-repeat="item in orderList">
                                    <td class="ordertimeline-time">
                                        <p class="ordertimeline-title ng-binding" ng-bind="item.created_at | parseDate">{{(date('m-d',$aaa['0']->createtime))}}</p>

                                        <p ng-bind="item.created_at | date:'HH:mm'" class="ng-binding">{{(date('H:i',$aaa['0']->createtime))}}</p>
                                        <!-- <p ng-bind="item.created_at | date:'HH:mm'" class="ng-binding">19:49</p> -->
                                        <!-- ngIf: item.realStatus !==5 -->
                                        <i class="ordertimeline-time-icon icon-uniE65D ng-scope unfinish" ng-if="item.realStatus !== 5" ng-class="{'unfinish': item.realStatus !== 4, 'unreview': item.realStatus === 4}"></i>
                                        <!-- end ngIf: item.realStatus !==5 -->
                                        <!-- ngIf: item.realStatus===5 --></td>
                                    <td class="ordertimeline-avatar">
                                        <a ng-href="/shop/1302167" href="">
                                            <img ng-src="" src="{{$aaa['0']->logo}}"></a>
                                    </td>
                                    <td class="ordertimeline-info">
                                        <h3 class="ordertimeline-title">
                                            <a ng-href="/shop/1302167" ng-bind="item.restaurant.name" class="ng-binding" href="/modify/orderdetail">{{$aaa['0']->shopname}}</a>
                                            <!-- ngIf: item.is_book --></h3>
                                        <p class="ordertimeline-info-food">
                                            <a ng-href="order/id/1210270905209902115" href="">
                                                <span class="ordertimeline-food ng-binding" ng-bind="item.product">{{$aaa[0]->goodsname}} {{$aaa[0]->ocount}}份</span>
                                                <!-- ngIf: item.productnamenum> 2 -->
                                                <!-- <span class="ordertimeline-info-productnum ng-binding" ng-bind="item.productnum">2</span>
                                                <span>个菜品</span></a> -->
                                        </p>
                                        <p>订单号:
                                            <a ng-href="order/id/1210270905209902115" ng-bind="item.unique_id" class="ng-binding" href="">{{$aaa[0]->ordernum}}</a></p>
                                    </td>
                                    <td class="ordertimeline-amount">
                                        <h3 class="ordertimeline-title ordertimeline-price ui-arial ng-binding" ng-bind="item.total_amount.toFixed(2)"></h3>
                                        <p ng-bind="item.is_online_paid ? '在线支付' : '货到付款'" class="ng-binding">在线支付</p></td>
                                    <td class="ordertimeline-status">
                                        @if($aaa[0]->orderstatus == 0)
                                        <h3 ng-bind="item.statusText" ng-class="{'waitpay': (item.realStatus === 1), 'end': (item.realStatus === 5)}" class="ng-binding waitpay">未付款</h3>
                                        @else
                                        <h3 ng-bind="item.statusText" ng-class="{'waitpay': (item.realStatus === 1), 'end': (item.realStatus === 5)}" class="ng-binding waitpay">已付款</h3>
                                        @endif
                                        
                                    <td class="ordertimeline-handle">
                                        <a class="ordertimeline-handle-detail" ng-href="order/id/1210270905209902115" href="/modify/orderdetail?id={{$aaa['0']->oid}}">订单详情</a>
                                        @if($aaa[0]->orderstatus == 0)
                                        <span ng-if="item.realStatus === 1" class="ordertimeline-handle-group ng-scope">
                                            <a ng-click="">立即付款
                                                <i class="icon-arrow-down"></i></a>
                                            <a href="/modify/del?id={{$aaa[0]->oid}}" ng-click="bundle.cancel(item)">取消订单</a></span>
                                        @else
                                        <a class="ordertimeline-handle-detail" ng-href="order/id/1210270905209902115" href="/modify/del?id={{$aaa[0]->oid}}">取消订单</a>
                                        @endif
                                    </td>
                                </tr>
                                <!-- end ngRepeat: item in orderList --></tbody>
                                  
                                @endforeach 
                        </table>
                        @endif
                        <div pagination="order" pagination-context="pageContext" pagination-onchange="onOrderPageChange()"
                        class="ng-scope pagination">
                            <ul>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
@include('home.Usercenter.footer')
